#include "Tcp.h"
#include <iostream>
#include <cstring>
#define ip "172.25.41.88"
#define port 8080
#define BUFFER_SIZE 100

int main()
{
    TcpServer s(ip, port);
    int clientfd = s.TcpServerAccept();
    
    char buffer[BUFFER_SIZE] = {0};
    while(1)
    {
        memset(buffer, 0, sizeof(buffer));
        s.TcpServerRecv(clientfd, buffer, sizeof(buffer));
        std::cout<<buffer<<std::endl;
        memset(buffer, 0, sizeof(buffer));
        strcpy(buffer, "hello");
        s.TcpServerSend(clientfd, buffer, sizeof(buffer));
    }
      
    return 0;
}